// 请求三级分类列表1
import request from "@/utils/request";
import type { CategoryType } from "@/stores/category";

const reqCategoryList1 = () => {
    return request.get<null, CategoryType>("/admin/product/getCategory1");
};
// 请求三级分类列表2
const reqCategoryList2 = (category1Id: number) => {
    return request.get<null, CategoryType>(`/admin/product/getCategory2/${category1Id}`);
};
// 请求三级分类列表3
const reqCategoryList3 = (category2Id: number) => {
    return request.get<null, CategoryType>(`/admin/product/getCategory3/${category2Id}`);
};
export { reqCategoryList1, reqCategoryList2, reqCategoryList3 };
